package com.tc.dispatch.rwservice.ejb;

import java.rmi.*;
import java.util.*;

import com.tc.dispatch.rwservice.exception.*;
import com.tc.dispatch.rwservice.model.*;
import javax.ejb.*;

public interface RWService
    extends javax.ejb.EJBObject {

  //public List findWareHouse(String whereString) throws RWException, RemoteException;
  public List findWHByCP(String ssign, String spec, String plate, float qty) throws RWException, RemoteException;

  public List findWHByBP(String ssign, String spec, float qty) throws RWException, RemoteException;

  public List findWHByYZ(String ssign, String spec, float qty) throws RWException, RemoteException;



  public List showPlan(String facname) throws RWException, RemoteException;






  public HashMap showplanAll() throws RWException, RemoteException;

  public float getLoadByNow(int fac, Date now) throws RWException, RemoteException;



  public List getUndoPlan() throws RWException, RemoteException;

  public Plan findPlan(String salesid, String plannum) throws RWException, RemoteException;




  public void refreshWh() throws RWException, RemoteException;

  public java.util.Date getRefreshTime() throws RemoteException;
  public int createLoad(Load load) throws RWException, RemoteException;
  public void updateLoad(Load load) throws RWException, RemoteException;
  public void removeLoad(int fac) throws RWException, RemoteException;
  public Load getLoad(int fac) throws RWException, RemoteException;
  public List findLoad(String wherestr) throws RWException, RemoteException;
  public void initLoad() throws RWException, RemoteException;
  public void addData(String whid, String type, String ssign, String spec, String plate, float qty) throws RWException, RemoteException;
  public List findERPTask(String whereStr) throws RWException, RemoteException;
  public List findERPTaskByPages(int start, int limit) throws RWException, RemoteException;
  public int getERPTaskTotalNum(String whereStr) throws RWException, RemoteException;
  public List findERPWH(String whereStr) throws RWException, RemoteException;
  public List findERPFactory(String whereStr) throws RWException, RemoteException;
  public void createERPPlanCtrl(ERPPlanCtrl erp) throws RWException, RemoteException;
  public List findERPTaskFromPlan(String whereStr) throws  RWException, RemoteException;
}